﻿namespace DotRas
{
    using System;
    using System.Diagnostics;

    [Serializable, DebuggerDisplay("PhoneNumber = {PhoneNumber}, ConnectionState = {ConnectionState}")]
    public sealed class RasConnectionStatus
    {
        private RasConnectionState _connectionState;
        private RasDevice _device;
        private int _errorCode;
        private string _errorMessage;
        private string _phoneNumber;

        internal RasConnectionStatus(RasConnectionState connectionState, int errorCode, string errorMessage, RasDevice device, string phoneNumber)
        {
            this._connectionState = connectionState;
            this._errorCode = errorCode;
            this._errorMessage = errorMessage;
            this._device = device;
            this._phoneNumber = phoneNumber;
        }

        public RasConnectionState ConnectionState
        {
            get
            {
                return this._connectionState;
            }
        }

        public RasDevice Device
        {
            get
            {
                return this._device;
            }
        }

        public int ErrorCode
        {
            get
            {
                return this._errorCode;
            }
        }

        public string ErrorMessage
        {
            get
            {
                return this._errorMessage;
            }
        }

        public string PhoneNumber
        {
            get
            {
                return this._phoneNumber;
            }
        }
    }
}

